package com.jiazhong.aop.annoaop;

import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Auther:shuXin
 */
public class CalculatorTest {
    private Logger logger= LoggerFactory.getLogger(CalculatorTest.class);

    @Test
    public void test01(){
        ApplicationContext ac= new ClassPathXmlApplicationContext("bean.xml");
        Calculator bean = ac.getBean(Calculator.class);
        int add = bean.add(1,3);
        logger.info("执行成功:"+add);
    }
}
